// srcuser.js
import request from '@/utils/http'

export const getUserInfo = () => request.get('user/info');
export const updateUser = (data) => request.put('user/user', data);
export const account_login = (data) => request.post('user/account_login', data);
export const sms_login = (data) => request.post('user/sms_login', data);
export const newforgot = (data) => request.post('user/newforgot', data);
export const logout = () => request.post('user/logout');
export const register = (data) => request.post('user/register', data);
//发送验证码 {phone,scene}
export const sendCode = (data) => request.post('user/sendCode', data);
//提交手机号和验证码{phone,code}
export const loginByPhoneCode = (data) => request.post('user/loginByPhoneCode', data);
//找回密码
export const resetPassword = (data) => request.post('user/resetPassword', data);

//locationList
export const locationListApi = (data) => request.post('user/locationList', data);

export const searchLocationItemApi = (data) => request.post('user/searchLocationItem', data);
